package com.kangkang.reflection.classEx;

/**
 * 描述:
 * 日期: 2022-03-18 <br>
 *
 * @author: 旺旺老师<br>
 * @version: 1.0<br>
 */
public class Student extends Person implements IA, IB {
    private int id;
    String b;
    protected String c;
    public String d;
    private String name;
    private String tel;
    private boolean men;

    public Student() {
        System.out.println("无参构造函数被调用了");
    }
    public Student(String name) {
        System.out.println("有String参数的构造函数被调用了");
        this.name = name;
    }
    public Student(int id, String name) {
        System.out.println("两个参数的构造函数被调用了");
        this.name = name;
        this.id = id;
    }

    public Student(int id, String name, String tel, boolean men) {
        this.id = id;
        this.name = name;
        this.tel = tel;
        this.men = men;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", tel='" + tel + '\'' +
                ", men=" + men +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public boolean isMen() {
        return men;
    }

    public void setMen(boolean men) {
        this.men = men;
    }
    public void hahaMethod(int a, String b, boolean c) {

    }

    protected void protectedMethod() {

    }
    void defaultMethod() {

    }
    private void privateMethod() {

    }
}
